﻿using System;
using System.Windows.Forms;


namespace ImageShaper
{

    /// <summary>
    /// StartUp 的摘要说明:程序启动入口
    /// </summary>
    public class StartUp
    {
        private string[] args;

        public StartUp(string[] args)
        {
            this.args = args;
        }

        public void Start()
        {
            MainForm mainForm = new MainForm(args);

            Application.Run(mainForm);
            mainForm.Dispose();
            mainForm = null;

            GC.Collect();
        }
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        public static int Main(string[] args)
        {
            Application.DoEvents();
            Application.EnableVisualStyles();
            Application.DoEvents();

            new StartUp(args).Start();
            return 0;
        }
    }
}